/ Assembly List / LJCNetCommon / HTMLBuilder / GetMetas

Namespace - LJCNetCommon


Parameters
author - The author.
textState - The current text state values.
description - The description.
keywords - The keywords.
charSet - The charset value.

Returns

The <meta> elements.

Syntax

C#
public String GetMetas(String author, TextState textState, String description = null, String keywords = null, String charSet = utf-8)

Gets common meta elements.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
var result = hb.GetMetas("Mr. Smith", textState, "The Description");

// result:
// <meta charset="utf-8" />
// <meta name="description" content="The Description" />
// <meta name="author" content="Mr. Smith" />
// <meta name="viewport" content="width=device-width initial-scale=1" />

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.